using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace HBR_Prototype.Admin.Pages
{
  public partial class Site : System.Web.UI.MasterPage
  {
    private string masterSelectedTab = string.Empty;
    public string MasterSelectedTab
    {
      get { return masterSelectedTab; }
    }

    protected void Page_Load(object sender, EventArgs e)
    {
      
    }

    protected void ASPxTabControl_TabClick(object source, DevExpress.Web.ASPxTabControl.TabControlCancelEventArgs e)
    {
      masterSelectedTab = e.Tab.Name;
      Response.Redirect("~/Admin/Pages/" + e.Tab.Name + ".aspx");
    }

    public void SetActiveTab(string tabName)
    {
      ASPxTabControl1.ActiveTab = ASPxTabControl1.Tabs.FindByName(tabName);
    }
  }
}
